Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@statoscope/stats-extension-package-info
Advanced tools
Statoscope extension for collecting package info (e.g. available versions)
@statoscope/stats-extension-package-info is an npm package designed to extend Statoscope's capabilities by providing detailed information about packages in your project. It helps in analyzing and visualizing package-related data within your webpack stats.
Package Information Extraction
This feature allows you to extract detailed information about the packages used in your project from the webpack stats. The code sample demonstrates how to use the `getPackageInfo` function to retrieve and log package information.
const { getPackageInfo } = require('@statoscope/stats-extension-package-info');
const stats = require('./path-to-stats.json');
const packageInfo = getPackageInfo(stats);
console.log(packageInfo);
Custom Report Generation
This feature enables you to generate custom reports based on the package information extracted from the webpack stats. The code sample shows how to generate an HTML report using the `generateReport` function.
const { generateReport } = require('@statoscope/stats-extension-package-info');
const stats = require('./path-to-stats.json');
const report = generateReport(stats, { output: 'html' });
console.log(report);
Integration with Statoscope
This feature allows seamless integration with Statoscope, enhancing its functionality by adding package information. The code sample demonstrates how to initialize and apply the Statoscope extension with the package info.
const Statoscope = require('@statoscope/stats-extension-package-info');
const stats = require('./path-to-stats.json');
const statoscope = new Statoscope(stats);
statoscope.apply();
webpack-bundle-analyzer is a powerful tool that provides a visual representation of the size of webpack output files. It helps in analyzing the content of your bundles and understanding which modules contribute to their size. Unlike @statoscope/stats-extension-package-info, it focuses more on visualizing the bundle size rather than providing detailed package information.
source-map-explorer analyzes JavaScript bundles using source maps to determine which file each byte in your minified code came from. It provides a detailed breakdown of the bundle contents, similar to @statoscope/stats-extension-package-info, but it focuses on source maps rather than package information.
bundle-stats is a tool that generates bundle size reports with detailed insights into the content of your webpack bundles. It provides a comprehensive analysis of the bundle size, similar to @statoscope/stats-extension-package-info, but it emphasizes bundle size metrics and trends over time.
Statoscope extension for collecting package info (e.g. available versions)
5.28.1 (20 October 2023)
[webpack-model]
- revert chunk-asset linking logic from 5.25.1FAQs
Statoscope extension for collecting package info (e.g. available versions)
The npm package @statoscope/stats-extension-package-info receives a total of 48,248 weekly downloads. As such, @statoscope/stats-extension-package-info popularity was classified as popular.
We found that @statoscope/stats-extension-package-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.